package com.kaifamiao.schema;

import java.util.logging.Logger;

public class PandaService {

    private static final Logger logger = Logger.getAnonymousLogger();

    public void save( String panda ) {
        logger.info( "保存" + panda );
    }

    public boolean update( String panda ) {
        logger.info( "更新" + panda );
        return true;
    }

    public boolean remove( Integer id ) {
        if( id > 0 && id <= 100 ) {
            logger.info( "删除成功" );
            return true;
        }
        throw new RuntimeException( "删除失败" );
    }
}
